package com.yj.cloudnote.dao;

import com.yj.cloudnote.model.User;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface UserMapper {
    List<User> selectAll();

    User selectByUsername(String username);

    int deleteByPrimaryKey(Integer userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectUsersByPage(HashMap params);

    int getUnblockedCount();

    int blocked(int userid);

    List<User> selectBlockedUsersByPage(HashMap params);

    int getBlockedCount();

    int unblocked(int userid);
}